#!/bin/sh
echo "find epe-admin-0.0.1-SNAPSHOT-exec.jar process and kill"

PROCESS=`ps -ef|grep "epe-admin-0.0.1-SNAPSHOT-exec.jar"|grep -v grep|grep -v PPID|awk '{ print $2}'`
for i in $PROCESS
do
    echo "Kill process [ $i ]"
    kill -9 $i
done

echo "epe-admin start .... "
echo "please wait a moment...."

nohup java -Dspring.output.ansi.enabled=always -jar ./target/epe-admin-0.0.1-SNAPSHOT-exec.jar >> epe_admin_nohup.out &

echo "epe-admin end"
